<!-- 用户头像显示的逻辑组件 -->
<template>
<div>
  <img :src="'http://'+ userInfo.pictcontent" v-if="userInfo.pictcontent">
  <img src="~images/icon/woman.png" v-else-if="userInfo.sex == '0'">
  <img src="~images/icon/man.png" v-else-if="userInfo.sex == '1'">
</div>
</template>
<script>
  export default{
    computed: {
      userInfo(){
        return localStorage.UserInfo?JSON.parse(localStorage.UserInfo):'';
      },
    },
  }
</script>